

const router = require("express").Router();
const minIO = require("../min-io");



router.get("/resource/images/:fileName", async (request, response) => {
    const { fileName } = request.params;
    const imageURL = `${minIO.serverURL}/images/${fileName}`;
    response.redirect(imageURL);
});


module.exports = router;

